package com.readaloud.dao;


import java.io.File;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.readaloud.hibernate.user.Author;
import com.readaloud.hibernate.user.Books;
import com.readaloud.hibernate.user.Users;



/**
 * Persistence interface for the Contact object.
 *
 * <p>User: Nick Heudecker</p>
 */
public interface InvertedIndexDao {
	List<Books> query(String query);

	void saveUser(ArrayList<String> paramList);

	void intialize(File dir);

	Books addComment(Integer userId, String userName, Books book,String commentDescription); 
	
	List<Books> getBooksbyGenre(String inputString, String genre);
	
	List<Books> getBooksbyAgeGroup(String ageGroup);
	
	List<Books> getBooksbyGenreAndAgeGroup(String genre,String ageGroup);
	
	Users isValidUser(String userName,String password);

	Author getAuthorDetails(int authorId);

	void updateBiography(int userId, String biography); 
	
}
